package fi.foyt.cs.persistence.domainmodel.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class ExternalLinkVerificationCode {

  public Key getId() {
    return id;
  }
  
  public Long getUserId() {
    return userId;
  }
  
  public void setUserId(Long userId) {
    this.userId = userId;
  }
  
  public String getVerificationCode() {
    return verificationCode;
  }
  
  public void setVerificationCode(String verificationCode) {
    this.verificationCode = verificationCode;
  }
  
  public String getExtra() {
    return extra;
  }
  
  public void setExtra(String extra) {
    this.extra = extra;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private Long userId;

  @Column (nullable = false)
  private String verificationCode;
  
  @Column
  private String extra;
}
